package com.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {

    @GetMapping("/list")
    public Map<String,Object> getMap(){
        Map<String, Object> map = new HashMap<>();
        map.put("username","张三");
        map.put("age",20);
        return map;
    }

}
